﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using XStudio.XCRF.Utilities.Base64Encryption;

namespace XStudio.Tools.Base64Convert
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
        }

        private void btnEncode_Click(object sender, EventArgs e)
        {
            txtEncoded.Text = txtOriginal.Text.Base64Encode();
        }

        private void btnDecode_Click(object sender, EventArgs e)
        {
            txtOriginal.Text = txtEncoded.Text.Base64Decode();
        }
    }
}
